package vip.xiaonuo.modular.business.service;

import com.alibaba.fastjson.JSONObject;
import vip.xiaonuo.core.pojo.page.PageResult;
import vip.xiaonuo.modular.business.param.PointAnalysisParam;
import vip.xiaonuo.modular.entitys.UserIndexTree;
import vip.xiaonuo.modular.manage.storeorder.entity.BiStoreOrder;

/**
 * @Author: liu
 * @Date:2022/10/20
 */
public interface PointAnalysisService {
    /**
     * 地址点位分析
     * @param param
     * @return
     */
    JSONObject findPoint(PointAnalysisParam param);

    /**
     * 区域分析
     * @param param
     * @return
     */
    JSONObject findArea(PointAnalysisParam param);

    /**
     * 对比分析
     * @param param
     * @return
     */
    JSONObject comparePoint(PointAnalysisParam param);
    /**
     *查询同类型“主题”真实成交数据
     * @param param
     * @return
     */
    public PageResult<BiStoreOrder> queryThemeOrderPage(PointAnalysisParam param);

    public Object indexTypeWeightTree();

    public JSONObject getIndustryWeightCacheMap(Long industryId,boolean fromSession);

    /**
     * 智能选址详细报告查询
     * @param param
     * @return
     */
    public JSONObject queryDetailReport(PointAnalysisParam param);

    /**
     * 根据themeId获取指标权重
     * @param param
     * @return
     */
    public UserIndexTree getIndustryWeightTree(PointAnalysisParam param);
}
